/*package com.bms.admin.util;

import java.lang.reflect.Method;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;

import org.reflections.Reflections;
import org.springframework.web.bind.annotation.RestController;

import com.bms.auth.annotation.RequiresPermissions;
import com.feilong.core.Validator;

import io.swagger.annotations.ApiOperation;


public class AnnoManageUtil {
	*//**
     * 获取指定文件下面的RequestMapping方法保存在mapp中
     *
     * @param packageName
     * @return
     *//*
    public static Map<String, String> getRequestMappingMethod(String packageName) {
        Reflections reflections = new Reflections(packageName);
        Set<Class<?>> classesList = reflections.getTypesAnnotatedWith(RestController.class);

        // 存放url和ExecutorBean的对应关系
        Map<String, String> mapp = new HashMap<String, String>();
        for (Class classes : classesList) {
            //得到该类下面的所有方法
            Method[] methods = classes.getDeclaredMethods();

            for (Method method : methods) {
            	RequiresPermissions requiresPermissions = method.getAnnotation(RequiresPermissions.class);
            	ApiOperation apiOperation = method.getAnnotation(ApiOperation.class);
                if (Validator.isNotNullOrEmpty(requiresPermissions) && Validator.isNotNullOrEmpty(apiOperation)) {
                	String[] perValues = requiresPermissions.value();
                	String operationValues = apiOperation.value();
                    for(String perValue : perValues){
                    	mapp.put(perValue, operationValues);
                    }
                }
            }
        }
        return mapp;
    }
    
    public static void main(String[] args) {
    	Map<String, String> resources = getRequestMappingMethod("com.bms.admin.bussiness");
    	System.out.println(resources.toString());
	}

}
*/